package com.ruoyi.storage.mapper;

import com.ruoyi.storage.domain.RepoCk;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.storage.domain.RepoWare;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
* @author 标哥
* @description 针对表【repo_ck】的数据库操作Mapper
* @createDate 2022-01-05 19:33:27
* @Entity com.ruoyi.storage.domain.RepoCk
*/
public interface RepoCkMapper extends BaseMapper<RepoCk> {

    List<RepoCk> selectAllCkList(RepoCk repoCk);

    boolean update(@Param("id") Integer id, @Param("status") Integer status);

    List<String> getAllMarketIndents();

    List<RepoWare> getAllWare();

    int updateCkStatus(RepoCk repoCk);

    List<RepoCk> getAll(RepoCk repoRk1);

    Integer getWareIdByCkId(RepoCk repoCk);

    HashMap<String, Object> getProductIdAndNumByCkId(RepoCk repoCk);

    boolean updateKcReduce(@Param("wareId") Integer wareId, @Param("productId") Integer productId, @Param("num") Integer num);

    boolean updateKcAdd(@Param("wareId") Integer wareId, @Param("productId") Integer productId, @Param("num") Integer num);
}




